package edu.mama.college.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 用户的课程
 */
@NoArgsConstructor
@AllArgsConstructor
@Data
public class UserCourse {

    private int id;
    //开始学习时间
    private Date joinTime;
    //用户ID
    private int userId;
    //课程ID
    private int courseId;
    //本课程累计学习时长（单位：分钟）
    private int studiedMins;
    //正在学习的章节ID
    private int lessonId;


    //课程
    private Course course;
    //正在学习的章节
    private Lesson studying;

}
